Skip to content

ci(java): auto-release the Maven Central deployment#323

Merged
pratyush618 merged 1 commit into
masterfrom
fix/java-publish-auto-release
Jun 28, 2026
Merged

ci(java): auto-release the Maven Central deployment#323
pratyush618 merged 1 commit into
masterfrom
fix/java-publish-auto-release

Conversation

@pratyush618

@pratyush618 pratyush618 commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

The 0.18.0 Java release uploaded to Maven Central but stayed in VALIDATED state — never published — requiring a manual "Publish" click in the Central Portal.

Cause

publish-java.yml ran ./gradlew publishToMavenCentral, which only stages the Central Portal deployment. The vanniktech plugin's separate publishAndReleaseToMavenCentral task is the one that uploads and releases.

Fix

Switch the publish step to publishAndReleaseToMavenCentral. Future Java releases publish automatically.

(Gradle config in build.gradle.kts is unchanged; the task name carries the release semantics.)

Note

0.18.0 itself still needs a one-time manual Publish in the Central Portal (the VALIDATED deployment) — this fix prevents the manual step for 0.18.1+.

Summary by CodeRabbit

  • Chores
    • Improved the Maven Central release workflow so standard publishing now completes the full upload-and-release process.
    • Dry-run publishing behavior remains unchanged.

publishToMavenCentral only stages the Central Portal deployment (state stays VALIDATED, needs a manual Publish click). Use publishAndReleaseToMavenCentral so the release completes automatically — 0.18.0 had to be released by hand.
@github-actions github-actions Bot added the ci label Jun 28, 2026
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5f23b524-1669-46e4-9320-caa13e8a87b4

📥 Commits

Reviewing files that changed from the base of the PR and between 2f9bbdf and 03e02ad.

📒 Files selected for processing (1)
  • .github/workflows/publish-java.yml

📝 Walkthrough

Walkthrough

The non-dry-run Gradle publish command in the Java publishing workflow is changed from publishToMavenCentral to publishAndReleaseToMavenCentral, which uploads and triggers an automatic Central Portal release. Inline comments are updated accordingly; the dry-run path is unchanged.

Changes

Maven Central Publish Task

Layer / File(s) Summary
Switch Gradle task to auto-release
.github/workflows/publish-java.yml
Non-dry-run step now calls publishAndReleaseToMavenCentral instead of publishToMavenCentral; comments updated to reflect automatic upload-and-release versus manual staging.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • ByteVeda/taskito#309: Also modifies .github/workflows/publish-java.yml's publish job, updating the actions/setup-java step.

Poem

🐇 Hop, hop, no more waiting in queue,
The portal gets poked when the artifact's new,
No manual click, no staging delay,
publishAndRelease ships it away!
One task to rule them all, hip-hip-hooray! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the workflow change to automatically release the Maven Central deployment.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/java-publish-auto-release

Comment @coderabbitai help to get the list of available commands.

@pratyush618
pratyush618 merged commit 486a880 into master Jun 28, 2026
14 checks passed
@pratyush618
pratyush618 deleted the fix/java-publish-auto-release branch June 28, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant